package com.shixi.shixitraining.shixitraining.ui.tabapply.adapter;

import android.content.Context;

import com.shixi.shixitraining.shixitraining.R;
import com.shixi.shixitraining.shixitraining.ui.tabapply.entity.ApplyTrainBean;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseAdapter;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseRecycleHolder;

import java.util.List;

/**
 * Created by shenyan on 2018/7/27.
 */

public class ApplyTrainAdapter extends BaseAdapter<ApplyTrainBean.DataBean> {
    public ApplyTrainAdapter(Context context, List<ApplyTrainBean.DataBean> data) {
        super(context, data);
    }

    @Override
    public void convert(BaseRecycleHolder holder, ApplyTrainBean.DataBean item, int position) {
        holder.setText(R.id.collect_job_title_tv,item.getTitle());
//        holder.setText(R.id.job_times_tv,item.getOpenclass());
        holder.setText(R.id.job_date_tv,item.getOpenclass());
        holder.setText(R.id.job_collect_time_tv,item.getTime());
    }

    @Override
    protected int getLayoutId(int viewType) {
        return R.layout.adapter_mine_apply_job;
    }
}
